package com.xinhe.web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "本地用户保存对象")
public class LocalUserModel {
    @ApiModelProperty("用户名/登录账号")
    @NotBlank(message = "用户名不能为空")
    private String username;
    @ApiModelProperty("用户头像")
    @NotBlank(message = "请上传用户头像")
    private String iconPath;
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty("确认密码")
    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;
    @ApiModelProperty("角色")
    private Set<Long> roles;
}
